package top.continew.ai.mcp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * WeatherMcpService:
 *
 * @Author： Lonni
 * @Date： 2025/8/21  16:54
 */
@Component
@Slf4j
public class WeatherMcpService {



    @Tool(description = "获取今天的天气")
    public String getWeather(String city) {
        log.info("获取天气信息:{}",city);
        return "晴天";
    }

}
